
#ifndef _MEMBER_BMenuBar_H_
#define _MEMBER_BMenuBar_H_

#include <BRect>
#include <BMenu>

namespace BWE
{
	class MenuItem
	{
	public:
		MenuItem()
		{
			menu = 0;
		}
		MenuItem(BMenu* menu)
		{
			this->menu = menu;
		}

		bool operator == (const BMenu* menu)
		{
			return this->menu == menu;
		}

		BRect	rect;
		BMenu*	menu;
	};
	class member_BMenuBar
	{
	public:
		member_BMenuBar();
		~member_BMenuBar();

		void adjustMenuRects(BMenuBar* boss);

		int			space;
		Align		align;
		int			hoverIndex;
		bool		pressed;

		BArray<MenuItem>		menus;
	};
}

#endif